package com.ckm.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

@ConfigurationProperties(prefix = DynamicMongoProperties.PREFIX)
@Data
public class DynamicMongoProperties {
    public static final String PREFIX = "spring.data.mongodb";
    private String uri;
    private Map<String, MongoProperties> dynamic;
}
